Developer Documentation

QuickTime 4 API Documentation

QuickTime 4 Reference

| Previous | Chapter Contents | Chapter Top | Next |

Adding a Preview to Your Dialog Box

You may have noticed that the incorporated controls shown in Figure 11 do not include a preview, as the standard parameters dialog box does ( Figure 9 ).

In order for your dialog box to show a preview of the effect, include another user item in the application's dialog box to contain the preview movie clip. Then call the ImageCodecStandardParameterDialogDoAction function with the pdActionSetPreviewUserItem action selector, as shown in the following code snippet:

myErr = ImageCodecStandardParameterDialogDoAction(gCompInstance,
                                    gEffectsDialog,
                                    pdActionSetPreviewUserItem,
                                    (void *) kPreviewUserItemID);

This makes the user item whose item number is kPreviewUserItemID (an application-defined constant in this example) the previewer for your dialog box.

You can use the ImageCodecStandardParameterDialogDoAction function to perform a number of similar customizations; see the reference section "ImageCodecStandardParameterDialogDoAction" for more details.


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |